﻿// <copyright file="CardControlServiceHost.cs" company="SharpSTS">
// Copyright (c) 2007, 2008 All Right Reserved, http://sharpsts.com/
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Barry Dorrans</author>
// <email>barryd@idunno.org</email>
// <date>2008-06-10</date>
// <summary>Contains a custom service host for the card control web service.</summary>

namespace SharpSTS.CardControl
{
    using System;
    using System.ServiceModel;

    /// <summary>
    /// Creates a custom <see cref="CardControlService"/>.
    /// </summary>
    [CardControlErrorHandler]
    internal class CardControlServiceHost : ServiceHost
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CardControlServiceHost"/> class.
        /// </summary>
        /// <param name="baseAddresses">The base addresses.</param>
        public CardControlServiceHost(Uri[] baseAddresses) : base(typeof(CardControlService), baseAddresses)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CardControlServiceHost"/> class.
        /// </summary>
        /// <param name="serviceType">Type of the service.</param>
        /// <param name="baseAddresses">The base addresses.</param>
        public CardControlServiceHost(Type serviceType, Uri[] baseAddresses)
            : base(serviceType, baseAddresses)
        {
        }
    }
}